package com.tz.movie.domain;

import com.alibaba.fastjson.JSONObject;

public class User {
  private Integer id;

  private String name;

  private String password;

  private String realname;

  private String phone;

  private String address;

  private Double balance;

  private Integer groupid;

  @Override
  public String toString() {

    JSONObject jsonObject = new JSONObject();
    jsonObject.put("id", getId());
    jsonObject.put("name", getName());
    jsonObject.put("password", getPassword());
    jsonObject.put("realname", getRealname());
    jsonObject.put("phone", getPhone());
    jsonObject.put("address", getAddress());
    jsonObject.put("balance", getBalance());
    jsonObject.put("groupid", getGroupid());
    return jsonObject.toJSONString();
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password == null ? null : password.trim();
  }

  public String getRealname() {
    return realname;
  }

  public void setRealname(String realname) {
    this.realname = realname == null ? null : realname.trim();
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone == null ? null : phone.trim();
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address == null ? null : address.trim();
  }

  public Double getBalance() {
    return balance;
  }

  public void setBalance(Double balance) {
    this.balance = balance;
  }

  public Integer getGroupid() {
    return groupid;
  }

  public void setGroupid(Integer groupid) {
    this.groupid = groupid;
  }
}